<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class MailClass {
    var $ci;
    var $from;
    
    function __construct() {
        $this->ci =& get_instance();
        $this->from = $this->ci->config->item('email');
    }
    
    public function MailPassword($password,$email){
        $content = "U bent zojuist toegevoegd aan de KADS website. Uw login is uw email adres en uw wachtwoord is '$password'";
        mail($email,"Uw account",$content,"From: $this->from");
        
    }

	
	public function __get($property) {
        if (property_exists($this, $property)) {
            return $this->$property;
        }
    }

    public function __set($property, $value) {
        if (property_exists($this, $property)) {
            $this->$property = $value;
        }
    }
}